package test;

import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;

public class Animals {
    private String types;
    private int age;
    private String name;
    private String zooName="JAVA动物园";
    PrintStream out = new PrintStream(System.out, true, "UTF-8");

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getZooName() {
        return zooName;
    }

    public void setZooName(String zooName) {
        this.zooName = zooName;
    }

    public Animals(String name,int age,String types) throws UnsupportedEncodingException {
        this.age = age;
        this.name = name;
        this.types=types;
        out.println(zooName+"：我是"+types+"，我今年"+age+"岁，我的名字叫"+name);
    }

    public Animals() throws UnsupportedEncodingException {
    }

}
class Pandas extends Animals{
    public Pandas(String name,int age,String types) throws UnsupportedEncodingException {
        super(name,age,types);
        setName(name);
        setTypes(types);
        setAge(age);
    }
}
class Tigers extends Animals{
    public Tigers(String name,int age,String types) throws UnsupportedEncodingException {
        super(name,age,types);
        setName(name);
        setTypes(types);
        setAge(age);
    }
}
class Lions extends Animals{
    public Lions(String name,int age,String types) throws UnsupportedEncodingException {
        super(name,age,types);
        setName(name);
        setTypes(types);
        setAge(age);
    }
}
class testAnimal{
    public static void main(String[] args) throws UnsupportedEncodingException {
        Scanner input = new Scanner(System.in,"UTF-8");
        String next = input.next();
        String[] split = next.split("，");
        Pandas pandas = new Pandas(split[0],Integer.parseInt(split[1]),"熊猫");
        Tigers tigers = new Tigers(split[2],Integer.parseInt(split[3]),"老虎");
        Lions lions = new Lions(split[4],Integer.parseInt(split[5]),"狮子");
        //滚滚，1，大虎，3，小狮子，2
    }
}


